package main

import (
	"errors"
	"fmt"
	"log"
)

func test1logs() {
	log.Println("This is an info message.")
	log.Println("INFO: Application started.")
	log.Println("DEBUG: Application is running.")
	log.Println("WARNING: This is a warning message.")
	log.Println("ERROR: This is an error message.")
	//log.Panicln("PANIC: This is a panic message!!!!  exit.")
	//log.Fatalln("FATAL: Something went wrong, terminating the application.")
}
func logcase() {
	var a, b = 1, 2
	_, error := sums(a, b)
	log.Fatalln(error)
}
func sums(a, b int) (int, error) {
	if a < b {
		fmt.Printf("%d", a)
		log.Println("ERROR: Application is running.")
		return a - b, errors.New("asdasdas error  a<b ")
	}
	return a + b, nil

}
